<?PHP


include 'm/content/c_d_content.php';

//form items
printformheader('Content Entry Page',$content_msg);


begin_form($_GET['cmd'],$id);
p_input('title',$o,$e);

p_select('category',$content_category->data,$e,'0','2',$o);

$enum_data=get_enum($table,'status');
p_select('status',$enum_data,$e,'0','1',$o);
p_text('content',$o,$e);
include 'b/icanbehidden.php';
				?>

				<div class='icanbehidden'>
				<?PHP
				
				
				p_input('weight',$o,$e);
				p_select('type',$content_type->data,$e,'1','1',$o);
				p_text('secondary',$o,$e);
				p_date('start',$o,$e);
				p_date('end',$o,$e);
				p_hidden('owner',$o,$e);
				$enum_data=get_enum('content','index');
				p_select('index',$enum_data,$e,'0','1',$o);
	
	?>
		
			<h2>Styling Options</h2>
		<?PHP
		p_input('serial_style_background_image',$o,$e);
		p_input('serial_style_masthead_color',$o,$e);
		p_input('serial_style_background_color',$o,$e);

		
		?>
	</div>
<?PHP
include 'b_c_content_image.php';


?>
		<hr />
	<?PHP
	
	
include 'b/icanbehidden2.php';
				?>

				<div class='icanbehidden2'>
					<h2>Meta Options</h2>
				<?PHP
				
				p_input('meta_title',$o,$e);
				p_input('meta_searchtitle',$o,$e);
				p_input('meta_description',$o,$e);
				p_input('meta_keywords',$o,$e);
				p_input('meta_searchdescription',$o,$e);
				
				?>
			
					<h2>Video Options</h2>
				<?PHP
		
				$o['none']=true;
				p_select('playlist',$music->data,$e,'4','0',$o);
				p_input('delivery',$o,$e);
				p_input('url',$o,$e);
				p_input('buffer',$o,$e);
		
				p_input('flashplayer',$o,$e);
				p_input('player_page',$o,$e);
				p_input('duration',$o,$e);
				p_input('video_title',$o,$e);
				p_input('video_file',$o,$e);
				
			
				?>
				
					<h2>Access Options</h2>
				<?PHP
	
				p_input('access_cost',$o,$e);
				p_input('access_type',$o,$e);
				p_input('access_expiry',$o,$e);
				p_input('access_currency',$o,$e);
				p_input('access_parent',$o,$e);
				p_input('access_preview',$o,$e);
				p_input('access_of',$o,$e);	
				
				$enum_data=get_enum('content_access','access_enabled');
				p_select('access_enabled',$enum_data,$e,'0','1',$o);
				$enum_data=get_enum('content_access','access_terms');
				p_input('access_terms_content',$o,$e);	
				p_select('access_terms',$enum_data,$e,'0','1',$o);
				$enum_data=get_enum('content_access','access_end_type');
				p_select('access_end_type',$enum_data,$e,'0','1',$o);
				p_date('access_end',$o,$e);
					
				?>
			
		
	</div>
		<hr />
	<?PHP
	
	if($_GET['cmd']=='edit')
	{
		delete_item();
	}
	
	printsubmit("Save");
	end_form($_GET['cmd']);
	printformfooter('View Content','?q=m/content/v_content.php',NULL,NULL,NULL,NULL);




?>